<!DOCTYPE html>
<html>
    <head>
        <link href="" rel="apple-touch-con">
        
        <title>{% block title %}Welcome!{% endblock %}</title>
		{% block stylesheets %}

        <link rel="stylesheet" href="{{ asset('bundles/EndorBundle/css/columnal/columnal.css') }}" type="text/css" media="screen" />
        <link rel="stylesheet" href="{{ asset('bundles/EndorBundle/js/jqueryui/jqueryui.css') }}" type="text/css" media="screen" />
        <link rel="stylesheet" href="{{ asset('bundles/EndorBundle/css/style.css') }}" type="text/css" media="screen" />
        <link rel="stylesheet" href="{{ asset('bundles/EndorBundle/css/global.css') }}" type="text/css" media="screen" />
        <link rel="stylesheet" href="{{ asset('bundles/EndorBundle/css/config.css') }}" type="text/css" media="screen" />

        <!-- Menu CSS -->
        <link rel="stylesheet" href="{{ asset('bundles/EndorBundle/js/superfish/superfish.css') }}" type="text/css" media="screen" />

        <!-- Form Validation -->
        <link rel="stylesheet" href="{{ asset('bundles/EndorBundle/js/formvalidator/validationEngine.jquery.css') }}" type="text/css" media="screen" />

        <!-- Fixes for IE -->
        <!--[if lt IE 8]>
            <meta content="IE=Edge;chrome=1" http-equiv="X-UA-Compatible">
            <link rel="stylesheet" href="{{ asset('bundles/EndorBundle/css/columnal/ie.css') }}" type="text/css" media="screen" />
            <link rel="stylesheet" href="{{ asset('bundles/EndorBundle/css/ie8.css') }}" type="text/css" media="screen" />
            <script src="{{ asset('bundles/EndorBundle/js/IE-Fix/IE8.js') }}"></script>
            <script type="text/javascript" src="{{ asset('bundles/EndorBundle/js/flot/excanvas.min.js') }}"></script>
        <![endif]-->
        <!--[if lt IE 7]>
            <meta content="IE=Edge;chrome=1" http-equiv="X-UA-Compatible">
            <link rel="stylesheet" href="{{ asset('bundles/EndorBundle/css/columnal/ie.css') }}" type="text/css" media="screen" />
            <link rel="stylesheet" href="{{ asset('bundles/EndorBundle/css/ie8.css') }}" type="text/css" media="screen" />
            <script src="{{ asset('bundles/EndorBundle/js/IE-Fix/IE7.js') }}"></script>
            <script type="text/javascript" src="{{ asset('bundles/EndorBundle/js/flot/excanvas.min.js') }}"></script>
        <![endif]-->
        <!--[if lt IE 9]>
            <meta content="IE=Edge;chrome=1" http-equiv="X-UA-Compatible">
            <link rel="stylesheet" href="{{ asset('bundles/EndorBundle/css/columnal/ie.css') }}" type="text/css" media="screen" />
            <link rel="stylesheet" href="{{ asset('bundles/EndorBundle/css/ie8.css') }}" type="text/css" media="screen" />
            <script src="{{ asset('bundles/EndorBundle/js/IE-Fix/IE9.js') }}"></script>
            <script type="text/javascript" src="{{ asset('bundles/EndorBundle/js/flot/excanvas.min.js') }}"></script>
        <![endif]-->

		{% endblock %}
                {% block javascripts %}

        <!-- JQuery & JQuery UI -->
        <script src="{{ asset('bundles/EndorBundle/js/jquery.js') }}"></script>
        <script src="{{ asset('bundles/EndorBundle/js/jquery.ui.js') }}"></script>

        <script src="{{ asset('bundles/EndorBundle/js/superfish/superfish.js') }}"></script>
        <script src="{{ asset('bundles/EndorBundle/js/endor.js') }}"></script>
        <script src="{{ asset('bundles/EndorBundle/js/jQuery.datetimepicker.js') }}"></script>

        <!-- HTML5 Placeholder -->
        <script src="{{ asset('bundles/EndorBundle/js/jquery.placeholder.1.2.min.shrink.js') }}"></script>


        <!-- Form Validation Engine -->
        <script src="{{ asset('bundles/EndorBundle/js/formvalidator/jquery.validationEngine.js') }}"></script>
        <script src="{{ asset('bundles/EndorBundle/js/formvalidator/jquery.validationEngine-es.js') }}"></script>


                {% endblock %}
                {% block customScripts %}{% endblock %}
        <link rel="shortcut icon" href="{{ asset('favicon.ico') }}" />	
        <meta charset="UTF-8">
    </head>
    <body>
        <div id="wrap">
            <div id="main">
                <header class="container">
                    <div class="row clearfix">
                        <div class="left">
                            <a href="{{ path('EndorBundle_homepage') }}" id="logo">endor</a>
                        </div>
                        <div class="right">
                            <ul id="toolbar">
                                {% if app.user %}
                                <li><span>Sesi&oacute;n Iniciada como: </span><a id="loginarrow" href="">{{ app.user.username }}</a></li>
                                {% endif %}
                                <!--<li><a id="messages" href="#">Messages</a></li>
                                <li><a id="settings" href="#">Settings</a></li>
                                <li><a id="search" href="#">Search</a></li>-->
                            </ul>

                            <div id="logindrop">
                                <ul>
                                    <li id="logoutprofile"><a href="{{path("logout")}}">Cerrar Sesi&oacute;n</a></li>
                                </ul>
                            </div>

                            <!--<div id="searchdrop">
                                <input type="text" id="searchbox" placeholder="Search...">
                            </div>-->
                        </div>
                    </div>
                </header>

                <nav class="container">
                    <select class="mobile-only row clearfix" onchange="window.open(this.options[this.selectedIndex].value,'_top')">
                        <option value="index.php?t=dashboard">Dashboard</option>
                        <option value="tables.php?t=tables">Tables</option>
                        <option value="forms.php?t=forms">Forms</option>
                        <option value="dialogbox.php?t=dialog+boxes">Dialog Boxes</option>
                        <option value="statistics.php?t=statistics">Statistics</option>
                        <option value="gallery.php?t=gallery">Gallery</option>
                        <option value="typography.php?t=typography">Typography</option>
                        <option value="grids.php?t=grids">Grid</option>
                        <option value="calendar.php?t=calendar">Calendar</option>
                        <option value="icons.php?t=icons">Icons</option>
                    </select>

                    <ul class="sf-menu mobile-hide row clearfix">
                        <li class="iconed">
                            <a href="{{ path('EndorBundle_homepage') }}">
                                <span>
                                    <img src="{{ asset('bundles/EndorBundle/images/header/icon_dashboard.png') }}" /> 
                                    Inicio
                                </span>
                            </a>
                        </li>
                        {% if app.user %}
                        <li class="">
                            <a href=""><span>Movimientos</span></a>
                            <ul>
                                <li>
                                    <a href="{{ path('entradas') }}"><span>Entradas</span></a>
                                    <ul>
                                        <li><a href="{{ path('entradas_new') }}"><span>Agregar</span></a></li>
                                        <li><a href="{{ path('entradas') }}"><span>Ver Listado</span></a></li>
                                    </ul>
                                </li>
                                <li>
                                    <a href="{{ path('reservas') }}"><span>Reservas</span></a>
                                    <ul>
                                        <li><a href="{{ path('reservas_new') }}"><span>Agregar</span></a></li>
                                        <li><a href="{{ path('reservas') }}"><span>Ver Listado</span></a></li>
                                    </ul>
                                </li>
                                <li>
                                    <a href="{{ path('inventarios') }}"><span>Inventario</span></a>
                                    <ul>
                                        <li><a href="{{ path('inventarios_bodegas') }}"><span>Por Bodega</span></a></li>
                                        <li><a href="{{ path('inventarios_articulos') }}"><span>Por Articulos</span></a></li>
                                        <li><a href="{{ path('inventarios_clientes') }}"><span>Por Clientes</span></a></li>
                                        <li><a href="{{ path('inventarios_proveedores') }}"><span>Por Proveedor</span></a></li>
                                    </ul>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <a href=""><span>Operaciones</span></a>
                            <ul>
                                <li>
                                    <a href="{{ path('compras') }}"><span>Compras</span></a>
                                    <ul>
                                        <li><a href="{{ path('compras_new') }}"><span>Agregar</span></a></li>
                                        <li><a href="{{ path('compras') }}"><span>Ver Listado</span></a></li>
                                    </ul>
                                </li>
                                <li>
                                    <a href="{{ path('ventas') }}"><span>Salidas</span></a>
                                    <ul>
                                        <li><a href="{{ path('ventas_new') }}"><span>Agregar</span></a></li>
                                        <li><a href="{{ path('ventas') }}"><span>Ver Listado</span></a></li>
                                    </ul>
                                </li>
                                <li>
                                    <a href="{{ path('ensamblado') }}"><span>Ensamblar Kit</span></a>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <a href=""><span>Administrador</span></a>
                            <ul>
                                <li>
                                    <a href="{{ path('bodegas') }}"><span>Bodegas</span></a>
                                    <ul>
                                        <li><a href="{{ path('bodegas_new') }}"><span>Agregar</span></a></li>
                                        <li><a href="{{ path('bodegas') }}"><span>Ver Bodegas</span></a></li>
                                    </ul>
                                </li>
                                <li>
                                    <a href="{{ path('articulos') }}"><span>Articulos</span></a>
                                    <ul>
                                        <li><a href="{{ path('articulos_new') }}"><span>Agregar</span></a></li>
                                        <li><a href="{{ path('articulos') }}"><span>Ver Articulos</span></a></li>
                                    </ul>
                                </li>
                                <li>
                                    <a href="{{ path('clientes') }}"><span>Clientes</span></a>
                                    <ul>
                                        <li><a href="{{ path('clientes_new') }}"><span>Agregar</span></a></li>
                                        <li><a href="{{ path('clientes') }}"><span>Ver Clientes</span></a></li>
                                    </ul>
                                </li>
                                <li>
                                    <a href="{{ path('proveedores') }}"><span>Proveedores</span></a>
                                    <ul>
                                        <li><a href="{{ path('proveedores_new') }}"><span>Agregar</span></a></li>
                                        <li><a href="{{ path('proveedores') }}"><span>Ver Proveedores</span></a></li>
                                    </ul>
                                </li>
                                <li>
                                    <a href="{{ path('precios') }}"><span>Precios</span></a>
                                    <ul>
                                        <li><a href="{{ path('precios_new') }}"><span>Agregar</span></a></li>
                                        <li><a href="{{ path('precios') }}"><span>Ver Lista Precios</span></a></li>
                                    </ul>
                                </li>
                                <li>
                                    <a href="{{ path('categorias') }}"><span>Categor&iacute;as</span></a>
                                    <ul>
                                        <li><a href="{{ path('categorias_new') }}"><span>Agregar</span></a></li>
                                        <li><a href="{{ path('categorias') }}"><span>Ver Categor&iacute;as</span></a></li>
                                    </ul>
                                </li>
                                <li>
                                    <a href="{{ path('ivas') }}"><span>Ivas</span></a>
                                    <ul>
                                        <li><a href="{{ path('ivas_new') }}"><span>Agregar</span></a></li>
                                        <li><a href="{{ path('ivas') }}"><span>Ver Ivas</span></a></li>
                                    </ul>
                                </li>
                                <li>
                                    <a href="{{ path('tiposunidades') }}"><span>Unidades de Medida</span></a>
                                    <ul>
                                        <li><a href="{{ path('tiposunidades_new') }}"><span>Agregar</span></a></li>
                                        <li><a href="{{ path('tiposunidades') }}"><span>Ver Unidades de Medida</span></a></li>
                                    </ul>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <a href="{{ path('reportes') }}">Reportes</a>
                            <ul>
                                <li>
                                    <a href="{{ path('reportes_entradas') }}">Reporte de entradas</a>
                                </li>
                                <li>
                                    <a href="{{ path('reportes_salidas') }}">Reporte de salidas</a>
                                </li>
                            </ul>
                        </li>
                        {% if is_granted('ROLE_SUPER_ADMIN') %}
                        <li>
                            <a href="{{ path('usuarios') }}">Usuarios</a>
                            <ul>
                                <li>
                                    <a href="{{ path('usuarios') }}">Listar</a>
                                </li>
                                <li>
                                    <a href="{{ path('usuarios_new') }}">Agregar</a>
                                </li>
                            </ul>
                        </li>
                        {% endif %}
                        {% endif %}
                    </ul>
                </nav>

                <div id="titlediv">
                    <div class="clearfix container" id="pattern">
                        <div class="row">
                            <div class="col_12">
                                <ul class="breadcrumbs hor-list">
                                    <li><a href="{{ path('EndorBundle_homepage') }}">Inicio</a></li>
                                </ul>
                                <h1>{% block module_name %}{% endblock %}</h1>
                                <div id="bglogo"></div>
                            </div>
                        </div>
                    </div>
                </div>

                <!--Start: Container -->
                <div class="container" id="actualbody">
                    <div class="row clearfix">
                        {% block body2 %}
                            <div class="col_12">
                                <div class="widget clearfix">
                            	{% block body %}
                                {% endblock %}
                                    </div>
                                </div>
                        {% endblock %}
                            </div>
                        </div>
                        <!--End: Container -->
                    </div>
                </div>

                <footer>
                    <div class="container">
                        <div class="row clearfix">
                            <div class="col_12">
                                <span class="left">&copy; 2011 Endor.</span>
                                <span class="right">Powered by Symfony</span>
                            </div>
                        </div>
                    </div>
                </footer>
            </body>
        </html>